function testDeleteElemets() {
    var testName = "delete elements";
    
    try {
        UIALogger.logStart("Test " + testName + " on " + UIATarget.localTarget().model());
        
        var cells;
        
        if (isPhone()) {
            tapLeftNavigationBarButton();
            
            cells = UIATarget.localTarget().frontMostApp().mainWindow().tableViews()[0].cells();
        } else if (isPad()) {
            tap(UIATarget.localTarget().frontMostApp().mainWindow().popover().navigationBar().leftButton());
            
            cells = UIATarget.localTarget().frontMostApp().mainWindow().popover().tableViews()[0].cells();
        } else {
            UIALogger.logFail("Model " + model + " is not supported.");
        }
        
        for (var i = 0; i < cells.length; i++) {
            tap(cells[0].switches()[0]);
            tap(cells[0].buttons()[0]);
            
            UIALogger.logMessage("Deleted element " + i);
        }
        
        UIALogger.logPass("Test " + testName + " passed on " + UIATarget.localTarget().model());
    } catch(error) {
        UIALogger.logFail("Error in test:" + testName + "\n" + error);
    }
}